public class Varp {
	public static int anInt703;
	public static Varp[] varps;
	public static int anInt705;
	public static int[] anIntArray706;
	public String aString707;
	public int anInt708;
	public int anInt709;
	public boolean aBoolean710 = false;
	public boolean aBoolean711 = true;
	public int anInt712;
	public boolean aBoolean713 = false;
	public int anInt714;
	public int anInt715;
	public boolean aBoolean716 = false;
	public int anInt717 = -1;
	public boolean aBoolean718 = true;

	public static void getValues(Archive archive) {
		Packet packet = new Packet(archive.method154(
			"varp.dat", null));
			Varp.anInt705 = 0;
			Varp.anInt703 = packet.getUShort();
			if (Varp.varps == null) {
				Varp.varps = new Varp[Varp.anInt703];
			}
			if (Varp.anIntArray706 == null) {
				Varp.anIntArray706 = new int[Varp.anInt703];
			}
			for (int i_0_ = 0; i_0_ < Varp.anInt703; i_0_++) {
				if (Varp.varps[i_0_] == null) {
					Varp.varps[i_0_] = new Varp();
				}
				Varp.varps[i_0_].method383(-954, i_0_, packet);
			}
			if (packet.offset != packet.payload.length) {
				System.out.println("varptype load mismatch");
			}
	}

	public void method383(int i, int i_1_, Packet packet) {
		if (i < 0) {
			for (;;) {
				int i_2_ = packet.getUByte();
				if (i_2_ == 0) {
					break;
				}
				if (i_2_ == 1) {
					anInt708 = packet.getUByte();
				} else if (i_2_ == 2) {
					anInt709 = packet.getUByte();
				} else if (i_2_ == 3) {
					aBoolean710 = true;
					Varp.anIntArray706[Varp.anInt705++] = i_1_;
				} else if (i_2_ == 4) {
					aBoolean711 = false;
				} else if (i_2_ == 5) {
					anInt712 = packet.getUShort();
				} else if (i_2_ == 6) {
					aBoolean713 = true;
				} else if (i_2_ == 7) {
					anInt714 = packet.getInt();
				} else if (i_2_ == 8) {
					anInt715 = 1;
					aBoolean716 = true;
				} else if (i_2_ == 10) {
					aString707 = packet.getString();
				} else if (i_2_ == 11) {
					aBoolean716 = true;
				} else if (i_2_ == 12) {
					anInt717 = packet.getInt();
				} else if (i_2_ == 13) {
					anInt715 = 2;
					aBoolean716 = true;
				} else if (i_2_ == 14) {
					aBoolean718 = false;
				} else {
					System.out.println("Error unrecognised varp config code: " + i_2_);
				}
			}
		}
	}
}
